package lab02.test35;

public class Worker extends Employee{
    double daySalary;
    int days;

    public Worker(String name,double daySalary,int days) {
        super(name);
        this.daySalary=daySalary;
        this.days=days;
    }

    public double computeSalary() {
        return days*daySalary;
    }
}
